home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / datatypes / cdt / makefile < prev    next >
Makefile  |  1996-04-07  |  2KB  |  98 lines

  1. #
  2. # $PROJECT: c.datatype
  3. #
  4. # $VER: Makefile 39.1 (18.03.95)
  5. #
  6. # by
  7. #
  8. # Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
  9. #
  10. # (C) Copyright 1995
  11. # All Rights Reserved !
  12. #
  13. # $DESCRIPTION:
  14. #
  15. # If you want to recompile the datatype you have to do some initial work, to
  16. # run this makefile !
  17. # First you must have installed the ixemul.library and the gnu make utility !
  18. # Second you have to set the VERSION,REVISION variables (In my environment it's
  19. # automatically set). After this you need a assign called objs: to hold all
  20. # object files ! I use also a modified version of the bison.simple file (see in
  21. # misc/bison.simple) !
  22. # Now you can run make from this directory !
  23. #
  24. # $HISTORY:
  25. #
  26. # 18.03.95 : 039.001 : initial
  27. #
  28.  
  29. VERSTR     = $(VERSION).$(REVISION)
  30. NAME       = c
  31. SHNAME     = cdt
  32. SHORT      = c.datatype $(VERSTR) highlights c/c++ keywords etc.
  33. PLACE      = util/dtype
  34. README     = Readme
  35.  
  36. RELEASE    = $(NAME)dt.lha
  37. RELEASEPAT = $(NAME)dt $(NAME)dt.info
  38.  
  39.  
  40. ##############################################################################
  41. #
  42. # just call the makefile in source for each cpu in CPUTOMAKE
  43. #
  44.  
  45. BASECPU   = 020
  46.  
  47. DIFFCPU   = 000 \
  48.                 030 \
  49.                 040
  50.  
  51. CPUTOMAKE = $(BASECPU) $(DIFFCPU)
  52.  
  53. ##############################################################################
  54. #
  55. # docs and guides
  56. #
  57.  
  58. AUTODOCS = doc/$(NAME)_dtc.doc
  59. GUIDE    = help/$(NAME)_dtc
  60.  
  61. ##############################################################################
  62. #
  63. # source
  64. #
  65.  
  66. SRCS     = source/dispatch.c
  67.  
  68.  
  69. all:: cpuversions
  70.  
  71. cpuversions::
  72.     -@for i in $(CPUTOMAKE); \
  73.     do \
  74.         (cd source; echo "making 68$$i version of $(NAME).datatype"; \
  75.          make SCOPTIMIZE='OPT OPTTIME OPTSCHED OPTINLOCAL CPU=68'$$i \
  76.                 SLOPT='NOICONS VERBOSE SMALLDATA SMALLCODE NODEBUG' \
  77.                 OBJDIR='/objs/$(SHNAME)/rls'$$i \
  78.                 DEBUG='' ) ; \
  79.     done
  80.     cp /objs/$(SHNAME)/rls$(BASECPU)/$(NAME).datatype classes/datatypes/$(NAME).datatype.$(BASECPU)
  81.     -@for i in $(DIFFCPU); \
  82.     do \
  83.         (cd classes/datatypes; echo "makeing 68$$i patch file"; \
  84.          sc:c/scompare -o$(NAME).datatype.$$i.pch $(NAME).datatype.$(BASECPU) objs:$(SHNAME)/rls$$i/$(NAME).datatype) ; \
  85.     done
  86.  
  87. documentation:: $(AUTODOCS) $(GUIDE)
  88.  
  89. include misc/autodoc.mk
  90.  
  91. release: $(RELEASE)
  92.  
  93. include /gnu/local/share/gmk/release.mk
  94.  
  95. checkout:
  96.     (cd source; co -l Makefile; make checkout)
  97.  
  98.